package com.tf.pemporaryfood.mapper;

import com.tf.pemporaryfood.domain.entity.Category;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
public interface CategoryMapper {

    /**
     * 查询所有分类目录
     */
    List<Category> findCategoriesAll();

    /**
     * 根据层级查询分类信息
     * @param cateLevel
     * @return
     */
    List<Category> findCategoryByLevel(@Param("cateLevel") Integer cateLevel);

}
